package serverMessage;

import time.LogicalTimeStamp;

/**
 * A server would send out AskUserPubKey message to
 *  other servers after receiving 
 *  CreateSessionInfoRequestMessage from its logged-in 
 *  client asking for some user's public key if the
 *  server itself does not know the answer
 *  
 *  Other server replies with UserPubKey message if
 *   it knows the public key for the particular username
 */
public class AskUserPubKey extends ServerMessage{

	private static final long serialVersionUID = 869669736981150600L;
	private String username; 
	// the username who's public key you want from other servers
	
	public AskUserPubKey(String username, LogicalTimeStamp msgTS) {
		super(ServerMessage.ASK_USER_PUB_KEY, msgTS);
	}

	public String getUsername(){
		return username;
	}
}
